package cn.edu.nuc.fourth.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.nuc.fourth.model.Project;

public interface ProjectMapper {

	/**
	 * 删除项目
	 * 
	 * @param projectid
	 * @return
	 */
	int deleteByPrimaryKey(Integer projectid);

	int insert(Project record);

	int insertSelective(Project record);

	Project selectByPrimaryKey(Integer projectid);

	int updateByPrimaryKeySelective(Project record);

	int updateByPrimaryKey(Project record);

	/**
	 * 精确到一条记录的查询查询出来相关文件信息
	 * 
	 * @param project
	 * @return
	 */
	public Project findBytype(Project project);

	/**
	 * 根据日期查询出今年的填报记录
	 * 
	 * @param date
	 * @return
	 */
	public List<Project> findBydate(@Param("userid") String userid, @Param("date") String date);

	/**
	 * 更新项目状态
	 * 
	 * @param date
	 * @return
	 */
	public Integer noedit(@Param("userid")String userid,@Param("date")String date);
}